package cn.simon.service.Impl;

import cn.simon.mapper.GoodsMapper;
import cn.simon.pojo.Goods;
import cn.simon.service.IGoodsService;
import cn.simon.vo.GoodsVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 * simon-yian 开心
 * @author simon-yian

 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {

    @Autowired
    private GoodsMapper goodsMapper;
    public List<GoodsVo> findGoodsVo() {
        return goodsMapper.selectGoodsVo();
    }

    public GoodsVo findGoodsVoById(Long goodsId) {
        return goodsMapper.selectGoodsVoById(goodsId);
    }
}
